﻿package com.teaphy.coroutinecrawler.top_suspend

import kotlinx.coroutines.*

fun main() = runBlocking {

    println("coroutineScope -- runBlocking: $this")
    val coroutineName = CoroutineName("helloScope")
    val result: Int = withContext(coroutineName + Dispatchers.IO) {
        println("coroutineScope -- withContext: $this")
        delay(1000)
        1
    }
    println("withContext result: $result, coroutineScope -- result: $this")
}